/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.winner.lps.modules.app.entity;

import com.winner.lps.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 工种管理Entity
 *
 * @author 程少威
 * @version 2017-04-09
 */
public class AppWork extends DataEntity<AppWork> {

    private static final long serialVersionUID = 1L;
    private String name;        // 工种名称
    private String code;        // 工种编码

    public AppWork() {
        super();
    }

    public AppWork(String id) {
        super(id);
    }

    @Length(min = 1, max = 100, message = "工种名称长度必须介于 1 和 100 之间")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Length(min = 1, max = 100, message = "工种编码长度必须介于 1 和 100 之间")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}